﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SimpleWebServices.Models.Tenant>" %>
<%
    if (null != this.Model)
    {
        foreach (Favicon favicon in this.Model.Favicons)
        {
%>
            <link rel='<%=favicon.Relationship %>' type='<%=favicon.Type %>' href='<%=Http.ToCurrentProtocol(favicon.Href) %>' />
<%
        }

        foreach (StyleSheet stylesheet in this.Model.StyleSheets)
        {
            if (!string.IsNullOrEmpty(stylesheet.Conditional))
            {
                %><%=string.Concat("<!--[if ", stylesheet.Conditional ,"]>")%><%
            }
%>
            <link rel='stylesheet' type='text/css' media='<%=stylesheet.Media %>' href='<%=Http.ToCurrentProtocol(stylesheet.Href) %>' />
<%
            if (!string.IsNullOrEmpty(stylesheet.Conditional))
            {
                %><%="<![endif]-->"%><%
            }
        }
    }
%>